//
//  musicButton.m
//  Gegeda_music_MY
//
//  Created by lanou3g on 15/11/2.
//  Copyright © 2015年 周莹. All rights reserved.
//

#import "musicButton.h"

@implementation musicButton

-(instancetype)initWithFrame:(CGRect)frame withImageName:(NSString*)imageNmae withLabelText:(NSString*)labelText
{
    self = [super initWithFrame:frame];
    if (self)
    {
        self.iconImage = [[UIImageView alloc]initWithFrame:CGRectMake(20, 10, 20, 20)];
        self.iconImage.image = [UIImage imageNamed:imageNmae];
        [self addSubview:self.iconImage];
        
        
        self.label1 = [[UILabel alloc]initWithFrame:CGRectMake(35, 10, 30, 20)];
        self.label1.text = labelText;
        [self addSubview:self.label1];
        
    }
    
    return self;
    
}

@end
